--PL/SQL procedure using WebToolkit to produce HTML page
CREATE OR REPLACE PROCEDURE example_page
IS
BEGIN
HTP.HTMLOPEN; -- produces <HTML>
HTP.HEADOPEN; -- produces <HEAD>
HTP.TITLE(Customer Report); -- produces <TITLE>Customer Report</TITLE>
HTP.HEADCLOSE; -- produces </HEAD>
HTP.BODYOPEN -- produces <BODY>
HTP.HEADER(1,Customer Name); -- produces <H1>Customer Name</H1>
HTP.PARA; -- produces <P>
HTP.PRINT(Line of text ); -- will print Line of text
HTP.BODYCLOSE; -- produces </BODY>
HTP.HTMLCLOSE; -- produces </HTML>
END;